package com.weareint.common.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 *
 *
 * <pre>
 *
 * </pre>
 *
 * @author wangg
 * @date 2021/7/913:13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class QueryByPageDto extends QueryAssignedFieldsDto {

    @Min(value = 1, message = "页码最小为1")
    private Integer page;

    @Range(min = 1, max = 10000, message = "每页最少查询1条，最多查询10000条")
    private Integer size;
}
